import { TableColumnObject } from 'amis/lib/renderers/Table'
import baseEnumColumnUtils, { BaseEnumColumnUtilsProp } from '@/components/amis/common/BaseEnumColumnUtils/baseEnumColumnUtils'
import IamApplicationStatusEnum from '@/core/account/generated/enums/IamApplicationStatusEnum'

class IamApplicationStatusColumnUtils {
	getSchema = (parmas?: Partial<BaseEnumColumnUtilsProp>): TableColumnObject => {
		const mergeSchema = Object.assign(
			{
				name: 'status',
				label: '状态',
				baseEnum: IamApplicationStatusEnum,
			},
			parmas,
		)
		return baseEnumColumnUtils.getSchema(mergeSchema)
	}
}

export default new IamApplicationStatusColumnUtils()
